{include 'common/header.html'}
<body>
<header>
<ul>
<li><a href="{$this->urlCreate('admin','index')}" style="z-index: 50;">管理主页</a></li>
<li><a href="#" style="z-index: 49;">权限配置</a></li>
</ul>
</header>

<div id="main">
<div id="subtitle">权限配置</div>
<div id="box">
{if(empty($auths))}
<div id="tip">暂无权限配置</div>
{else}
<table style="display: block;width: 99%;">
<tr style="width: 100%;"><th style="width: 30%;">权限值</th><th style="width: 60%;">权限别名</th></tr>
{foreach $auths as $auth}

<tr style="width: 100%;"><td style="text-align: center;">{$auth['value']}</td><td style="text-align: center;">{$auth['name']}</td><td><a href="{$this->urlCreate('admin','auth_delete',array('id'=>$auth['id']))}" onclick="return confirm('确定删除？');">删</a></td></tr>

{/foreach}
</table>
{/if}
</div>

<div id="subtitle">添加权限等级</div>
<div id="box">
<form action="" method="post">
<label for="name">别名</label>
<input type="text" id="name" name="name" style="margin: 1em;display: block;" />
<label for="value">权限值</label>
<input type="number" id="value" name="value" style="margin: 1em;display: block;" value="0" />
<span style="display: block;margin: 3px 1em 3px;color: red;">{$tip}</span>
<input type="submit" name="submit" value="提交" style="margin: 1em;display: block;width: 64px;height: 24px;margin-left: 3em;" />
</form>
</div>
</div>
{include 'common/footer.html'}
</body>
</html>